package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.NoticeInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.NoticeInfoVO;
import com.sc.nft.entity.vo.ZhiTanNoticeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (sc_notice_info)数据Mapper
 *
 * @author rdg
 * @since 2022-05-30 10:09:02
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface NoticeInfoMapper extends BaseMapper<NoticeInfo> {

    /**
     * 分页获取公告
     * @param page
     * @return
     */
    Page<ZhiTanNoticeVO> noticeList(Page page);

    List<NoticeInfoVO> listNotice(@Param("announcementFrequency")Long announcementFrequency);

    List<NoticeInfoVO> getNoticeInfos();
    Page<NoticeInfoVO> getNoticeInfosPage(Page page);
    NoticeInfoVO getOneById(@Param("id") Long id);
}
